<?php 
class Application_Model_Moduloaplicacion extends ZendExt_Db_Table_Row_Abstract {
	//anda
	protected $_tableClass = "Application_Model_DbTable_Moduloaplicacion";
	protected $_cod_modulo = null;
	protected $_desc_modulo = null;
	protected $_activo = null;
	public $_data = null;
	public function getCod_modulo(){
		return $this->_cod_modulo;
	}
	public function getDesc_modulo(){
		return $this->_desc_modulo;
	}
	public function getActivo(){
		return $this->_activo;
	}
	public function setCod_modulo($_cod_modulo){
		$this->_cod_modulo = $_cod_modulo;
	}
	public function setDesc_modulo($_desc_modulo){
		$this->_desc_modulo = $_desc_modulo;
	}
	public function setActivo($_activo){
		$this->_activo = $_activo;
	}
	public function __get($propertyName) {
		$getter = "get" . $propertyName;
		if (!method_exists($this, $getter)) {
    		throw new RuntimeException("Property by name " . $propertyName . " not found as part of this object.");
		}
		return $this->{$getter}();
	}
	public function toArr() {
		return array(
			'cod_modulo' => $this->_cod_modulo, 
			'desc_modulo' => $this->_desc_modulo, 
			'activo' => $this->_activo);
}
    public function setFromArray(array $data) {
    	foreach (array('cod_modulo', 'desc_modulo', 'activo') as  $property) {
    		if (isset($data[strtoupper($property)])) {
     			$this->{'_'. $property} = $data[strtoupper($property)];
    		}
    	}
    }
} ?>